<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

include '../../../readcookie.php';
include '../../../db.php';

$id=$_POST['id'];
$date=mysql_real_escape_string($_POST['date']);
$title=mysql_real_escape_string($_POST['title']);
$price=mysql_real_escape_string($_POST['price']);
$start=mysql_real_escape_string($_POST['start']);
$stop=mysql_real_escape_string($_POST['stop']);
$location=mysql_real_escape_string($_POST['location']);
$content=mysql_real_escape_string($_POST['content']);
$mcontent=mysql_real_escape_string($_POST['mcontent']);
$img=mysql_real_escape_string($_POST['img']);
$video=mysql_real_escape_string($_POST['video']);
$xquery="UPDATE SubEvent SET
subevent_date = '$date',
subevent_title = '$title',
subevent_start = '$start',
subevent_stop = '$stop',
subevent_description = '$content',
subevent_more = '$mcontent',
subevent_location = '$location',
subevent_price = '$price',
subevent_img = '$img',
subevent_video = '$video'
WHERE
subevent_id = '$id'";

mysql_query($xquery) or die('Error, insert query failed');
header('Location: "../../../../../index2.php?plugin=extravaganza&page=single');

?>
